/*
 * @Description: Description
 * @Author: wning
 * @Date: 2022-12-01 16:22:31
 * @LastEditors: Andy
 * @LastEditTime: 2023-01-13 17:38:40
 */

import i18n from '@/common/lang'

// 数据表格内数据列
export const columns = [
  {
    label: i18n.t('organization.post.postName'),
    prop: 'postName',
    minWidth: 140,
    width: 'auto',
    fixed: true,
    align: 'center'
  },
  {
    label: i18n.t('organization.post.postCode'),
    prop: 'postCode',
    minWidth: 140,
    width: 'auto',
    fixed: true,
    align: 'center'
  },
  {
    label: i18n.t('organization.post.postNick'),
    prop: 'shortName',
    minWidth: 140,
    width: 'auto',
    align: 'center'
  },
  {
    label: i18n.t('organization.post.postRank'),
    prop: 'postRank',
    width: 'auto',
    align: 'center'
  },
  {
    label: i18n.t('organization.post.organizPost'),
    minWidth: 110,
    width: 'auto',
    prop: 'deptName',
    align: 'center'
  },
  {
    label: i18n.t('organization.post.correlationRoles'),
    minWidth: 150,
    width: 'auto',
    prop: 'roles',
    align: 'center'
  },
  {
    label: i18n.t('organization.post.toStart'),
    prop: 'state',
    width: 'auto',
    align: 'center'
  }
]
// 数据表格操作列
export const actions = [
  {
    key: 'edit',
    text: i18n.t('common.edit'),
    permissions: 'upms:post:update'
  },
  {
    key: 'delete',
    text: i18n.t('common.delete'),
    permissions: 'upms:post:delete'
  }
]
